package com.test.model;

/**
 * 项目名称:the_practice_of_git
 * 创建人:zhuguowei
 * 创建时间:2018/3/6 9:32
 */

public class User{

    private final String firstName;
    private final String lastName;
    private int age;

    public User(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public User(String firstName, String lastName, int age) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public int getAge() {
        return age;
    }


}
